package com.mdb.open.epay.domain.bo;

import cn.hutool.core.date.DatePattern;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.bc.validator.annotaion.validation.DateFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author liuyi
 * @date 2019-11-14
 **/
@Data
public class UnsignBo extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    /**
     * 客户编码
     */
    @ApiModelProperty(value = "客户编码")
    @NotBlank(message = "客户编码不能为空")
    private String customerCode;

    /**
     * 銀行簽約協議號
     */
    @NotBlank(message = "客户類型不能为空")
    @Size(max = 32)
    private String bankSignNo;

    /**
     * 銀行簽約時間
     */
    @NotBlank(message = "銀行簽約時間不能为空")
    @DateFormat(format = DatePattern.PURE_DATETIME_PATTERN)
    private String bankSignTime;

    /**
     * 簽約流水號
     */
    @NotBlank(message = "簽約流水號不能为空")
    @Size(max = 32)
    private String signSerialNo;
}